// ActionScript file
			import mx.rpc.http.mxml.HTTPService;
			import mx.effects.easing.*;
			
			//-------------------------------------------------------------------------
			// 상품 라벨링
			//-------------------------------------------------------------------------
			
			//메인제목 
			[Bindable] private var goodsSubject1:String = "___________________.";
			//서브제목
			[Bindable] private var goodsSubject2:String = "____________________";
			
			
			[Bindable]	public var strProdName : String = "";
			[Bindable]	public var strSizeInch : String = "";
			[Bindable]	public var strSizeCm : String = "";
			[Bindable]	public var strOrgPrice : String = "";
			[Bindable]	public var strSellPrice : String = "";
			[Bindable]  public var bProdInfoView : Boolean = false; 
			[Bindable]  public var numSpaceWidth : Number = 0;	// 상품 이미지 좌측 여백
			
			//0328
			[Bindable]	public var sF_CONTENTS : String = "";			
			[Bindable]	public var sF_USER_NAME : String = "";
			[Bindable]	public var sF_VIEW_CNT : String = "";
			
			//0330
			[Bindable]	public var strProdCd : String = "";			
			[Bindable]	public var strCategoryCd_web : String = "";
			[Bindable]	public var strProjCode : String = "";															
			[Bindable]	public var strFtmplId : String = "";
			[Bindable]	public var strFtmplCode : String = "";	
			
			//0331
			public var sIsProd : String = "";								
			public var sXmlPath : String = "";
			
			//0405
			public var sClassName : String = "";
			
			
			public var numTopInfoIndex : Number = -1;	//탑인포 인덱스 번호
			[Bindable]  public var numThumbNailIndex : Number = -1;	//썸네일 인덱스 번호
			
				 
			
			[Bindable]
			private var _bSwfVisible : Boolean = false;
			
			public function set bSwfVisible(value : Boolean):void
			{
				_bSwfVisible = value;
				swf_busy.invalidateProperties();
				
				// 20090216
				this.invalidateProperties();
			}
			
			// 상단 의 배경 이미지를 지정한다.
			// 미 지정시 시스템의 자체 이미지를 보여 준다.
			[Bindable]
			private  var _imgSrcTop : String = "../assets/images/pic.gif";
			
			public var strButtonDirection : String = "";
			
			
			public function get imgSrcTop():String
			{
				return _imgSrcTop; 		
			} 
			
			public function set imgSrcTop(value:String):void
			{
				bSwfVisible = true;
				swf_busy.invalidateProperties();
								
				// 이전 소스를 가지고 만 있는다..
				imgTemp.source = _imgSrcTop;
				
				GB.dispMsg(value);
				
				numSpaceWidth = 0;
				
				if(value == "")
				{
//					_imgSrcTop = "../assets/images/pic.gif";
					_imgSrcTop = "";
				}
				else if(value.substr(0,4) != "http")
				{
					_imgSrcTop = config.MAIN_URL + '/Upload/Data1/FlexCms/' + value; 	
					trace(_imgSrcTop);
				}
				else 
				{
					numSpaceWidth = 40;
					_imgSrcTop = value; 	
					trace(_imgSrcTop);
				}
				
				
				if(strButtonDirection == "LEFT")
				{
					movLeft.stop();
					movLeft.play();
				} 
				else if(strButtonDirection == "RIGHT")
				{
					movRight.stop();
					movRight.play();
				}
				
				callLater(imgBack.load);
							
			} 
			
			
			[Bindable]
			private var _view_btn: Boolean = true; 
			public function set view_btn(value : String) : void
			{
				trace("view_btn string : ", value);
				if( value == "Y" || value == "y")
				{
					_view_btn = true;
				} 	
				else
				{
					_view_btn = false;		
				}
			}

			 
			 // 주문 버튼의 visible 여부
			[Bindable]
			private var _order_btn: Boolean = true; 
			public function set order_btn(value : String) : void
			{
/* 				if( value == "Y" || value == "y")
				{
					_order_btn = true;
				} 	
				else
				{
					_order_btn = false;		
				} */
				
				if( value == "N" || value == "n")
				{
					_order_btn = false;
				} 	
				else
				{ 
					_order_btn = true;		
				}
			}
			
			// 기타 버튼			 
			[Bindable]
			private var _etc_btn: Boolean = false; 
			public function set etc_btn(value : String) : void
			{
				//trace("etc_btn string : ", value);
				if( value == "Y" || value == "y")
				{
					_etc_btn = true;
				} 	
				else
				{
					_etc_btn = false;		
				}
			}
			
			private function this_creationComplete():void
			{
				bSwfVisible = true;
				
				
				
				
			}
			
			public function dispSubject():void
			{
				 
				if( GB.strMenuName03 == "")
				{
					goodsSubject1 = GB.strMenuName01 + ".";
					goodsSubject2 = GB.strMenuName02;
				}
				else
				{
					goodsSubject1 = GB.strMenuName02 + ".";
					goodsSubject2 = GB.strMenuName03;
				}
				
				hideSubject1.invalidateProperties();
				hideSubject2.invalidateProperties();
				
				subject1.invalidateProperties();
				subject2.invalidateProperties();
				
				GB.dispMsg(goodsSubject1 + goodsSubject2);
			}
			
			private function btnEtc_click():void
			{
			}
			
			
			private function btnOrder_click():void {
				//javascript:open_OCX('/SmartPhoto/SmartPhoto.aspx?ProductCode=0080010001&categorycode=0570010001&Tdata=','SmartPhoto','width=1008,height=676')

				//&Tdata=prmprodcode=00800600030002||prmtmplid=al_aq_14_m||prmdsplcode=
				//key : &Tdata, value : prmprodcode=00800600030002||prmtmplid=al_aq_14_m||prmdsplcode=

				/*  
				ProductCode
				categorycode
				prmtmplid
				*/
				 
				if (ExternalInterface.available) {
					if(GB.sProductCode != "") {
						strProdCd = GB.sProductCode; 
					}					 
					
					// 주문하기 스마트 포토 호출 ..  
					GB.open_OCX(bProdInfoView, strProdCd, strFtmplId, GB.strViewCategoryCd);
				}				
															
			}
			
			private function btnView_click():void
			{
				//var goUrl:String = "http://dev.snaps.co.kr/Sub.aspx?"+ arrSmartPhotoUrl[hlTopPosition][1];
				//navigateToURL(new URLRequest(goUrl) , "_parent");		
						
				//GB.objSubMain.objMainMid_click(null);
			}
			
			// 20090217
			private function loaderInitHandler():void 
			{
          		if(imgBack.content is Bitmap) 
          		{
            		var bitmap:Bitmap = imgBack.content as Bitmap;

            		if( (bitmap != null) && (bitmap.smoothing == false) ) 
            		{
              			bitmap.smoothing = true;
            		}
            		
            		GB.dispMsg(imgBack.contentHeight);
            		// 원래 400이었는데 안내 이미지가 아닌 일반 사진들도 스크롤이 나와서 500으로 늘려놨음 
            		if( imgBack.contentHeight >= 500)
            		{
            			strVerticalScrollPolicy = "on";
            		}
            		else
            		{
            			strVerticalScrollPolicy = "off";
            		}
          		}
        	}
        	
        	[Bindable] private var strVerticalScrollPolicy : String = "off";